<?php
/**
 * 验证
 */

namespace app\index\validate\applets;
use app\index\validate\BaseValidate;

class IndexValidate extends BaseValidate {
    protected $rule = [
        'appid'     => 'require',
        'secret'   => 'require',
        'js_code'   => 'require',
        'grant_type'   => 'require',
    ];

    protected $message=[
        'appid' => '缺少参数appid',
        'secret' => '缺少参数secret',
        'js_code' => '缺少参数js_code',
        'grant_type' => '缺少参数grant_type',

    ];

     protected $scene = [
        'jscode2session'  =>  ['appid','secret','js_code','grant_type'],

    ];
}